package com.txts.road.app.map.model.dto;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import jakarta.validation.constraints.*;

/**
 * 收藏地点表单对象
 *
 * @author baoyr
 * @since 2025-07-17 10:46
 */
@Getter
@Setter
@Schema(description = "收藏地点表单对象")
public class FavoritePlaceDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "收藏ID")
    @NotNull(message = "收藏ID不能为空")
    private Integer id;

    @Schema(description = "用户ID")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "地点名称")
    @NotBlank(message = "地点名称不能为空")
    @Size(max=100, message="地点名称长度不能超过100个字符")
    private String placeName;

    @Schema(description = "详细地址")
    @Size(max=255, message="详细地址长度不能超过255个字符")
    private String address;

    @Schema(description = "纬度")
    @NotNull(message = "纬度不能为空")
    private BigDecimal latitude;

    @Schema(description = "经度")
    @NotNull(message = "经度不能为空")
    private BigDecimal longitude;

    @Schema(description = "分类")
    @Size(max=50, message="分类长度不能超过50个字符")
    private String category;

    @Schema(description = "描述")
    @Size(max=65535, message="描述长度不能超过65535个字符")
    private String description;

    @Schema(description = "创建时间")
    @NotNull(message = "创建时间不能为空")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


}
